import request from '@/utils/request'

// 查询real列表
export function listReal(query) {
  return request({
    url: '/system/real/list',
    method: 'get',
    params: query
  })
}

// 查询real详细
export function getReal(id) {
  return request({
    url: '/system/real/' + id,
    method: 'get'
  })
}
// 查询real详细
export function getRealByUserId(userId) {
  return request({
    url: '/system/real/byUserId?userId='+userId,
    method: 'get'
  })
}

// 新增real
export function addReal(data) {
  return request({
    url: '/system/real',
    method: 'post',
    data: data
  })
}

// 修改real
export function updateReal(data) {
  return request({
    url: '/system/real',
    method: 'put',
    data: data
  })
}

// 删除real
export function delReal(id) {
  return request({
    url: '/system/real/' + id,
    method: 'delete'
  })
}
